package com.cyj.dream.admin.service.system;

import com.cyj.dream.admin.model.system.SysRolePermission;

import java.util.List;

/**
 * @Description: 角色关联关系服务类
 * @BelongsProject: dream-DreamChardonnay
 * @BelongsPackage: com.dream.DreamChardonnay.service
 * @Author: ChenYongJia
 * @CreateTime: 2021-05-17 11:53
 * @Email: chen87647213@163.com
 * @Version: 1.0
 */
public interface SysRolePermissionService {

    /**
     * 查询角色权限关联关系表信息
     *
     * @param sysRolePermission 角色权限关联关系对象
     * @return java.util.List<com.dream.DreamChardonnay.model.system.SysRolePermission>
     * @date 2021-5-17 15:32:09
     * @author ChenYongJia
     * @version 1.0
     */
    List<SysRolePermission> selectSysRolePermission(SysRolePermission sysRolePermission);

    /**
     * 为角色设置权限
     *
     * @param sysRoleId       角色id
     * @param sysPermissionId 权限id集合
     * @return boolean
     * @date 2021-5-17 15:32:12
     * @author ChenYongJia
     * @version 1.0
     */
    boolean settingSysRolePermission(Long sysRoleId, List<Long> sysPermissionId);

    /**
     * 为角色移除权限
     *
     * @param sysRoleId       角色id
     * @param sysPermissionId 权限id集合
     * @return boolean
     * @date 2021-5-17 15:32:15
     * @author ChenYongJia
     * @version 1.0
     */
    boolean deleteSysRolePermission(Long sysRoleId, List<Long> sysPermissionId);

}
